#ifndef __SCNS_IIC_H__
#define __SCNS_IIC_H__

#include "ScnsConfig.h"

#if defined(SCNS_IIC_ENABLE)&&SCNS_IIC_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspIic.h"

extern ScnsStatus scnsIicInit(ScnsIicEnum iicN);
extern ScnsStatus scnsIicWrite(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen);
extern ScnsStatus scnsIicRead(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen);
extern ScnsStatus scnsIicWriteTick(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,const uint8*data,uint8 dataLen,uint16 tick);
extern ScnsStatus scnsIicReadTick(ScnsIicEnum iicN,uint8 device,const uint8*addr,uint8 addrLen,uint8*data,uint8 dataLen,uint16 tick);
extern void scnsIicScan(ScnsIicEnum iicN);
#endif
#endif

